package com.un.ebs.product.dto;

import lombok.Data;

import java.util.Date;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/5/8 12:51
 */
@Data
public class ProductCanBookSpuTimeResponse {

    private Date day;

    private String timeId;

    private String startTime;

    private String endTime;

    private long MaxBookCount;

    private long currBookCount;

    private long canBookCount;

    public long getCanBookCount() {
        return getMaxBookCount() - getCurrBookCount();
    }
}
